package psn.zjk.springboot.service;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @Description
 * @User zero
 * @Datetime 2021/6/6 19:08
 */
@Service
public class AopService  {

    @NacosValue(value = "${c1:dd}", autoRefreshed = true)
    private String c1;


    public void exec(){
        System.out.println("service executed");
    }


    @PostConstruct
    public void init(){
        System.out.println(c1);
    }

}
